package gestion.camping.dto;

public class TypeLocation {
	
	private long id;
	private String libelle;
	private TypeTerrain typeTerrain;
	private int nombreMax;
	
	public TypeLocation(){
		new TypeTerrain();
	}

	public TypeLocation(long id, String libelle, TypeTerrain typeTerrain,
			int nombreMax) {
		super();
		this.id = id;
		this.libelle = libelle;
		this.typeTerrain = typeTerrain;
		this.nombreMax = nombreMax;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	public TypeTerrain getTypeTerrain() {
		return typeTerrain;
	}

	public void setTypeTerrain(TypeTerrain typeTerrain) {
		this.typeTerrain = typeTerrain;
	}

	public int getNombreMax() {
		return nombreMax;
	}

	public void setNombreMax(int nombreMax) {
		this.nombreMax = nombreMax;
	}
	
	@Override
	public String toString() {
		return "TypeLocation [id=" + id + ", libelle=" + libelle
				+ ", typeTerrain=" + typeTerrain.toString() + ", nombreMax=" + nombreMax
				+ "]";
	}
}
